package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/Consolidatibn")
public class WmsConsolidatibnRouter {
    @Autowired
    SysMenuService menuService;
    //箱处理页面
    @RequestMapping(value = "/consolidatibn/{menu}")
    public  String  toconsolidatibn(@PathVariable("menu") String menu, Model model){
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "outOperation/wmsConsolidatibn/consolidatibn";
    }
    //集拼箱
    @RequestMapping(value = "/addJpx")
    public  String addJpx(){
        return "outOperation/wmsConsolidatibn/addJpx";
    }
    //换箱
    @RequestMapping(value = "/addHx")
    public  String addHx(){
        return "outOperation/wmsConsolidatibn/addHx";
    }
}
